/*import java.util.Scanner;

*//**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-29
 * Time: 14:34
 *//*
public class FibonacciIterative {
    public static int fib(int n){
        if (n<=0) {
            return -1;
        }
        if(n==1||n==2){
            return 1;
        }
        else {
            int f1=1;
            int f2=1;
            int f3=-1;
            for (int i = 3; i <= n; i++) {
                f3=f1+f2;
                f1=f2;
                f2=f3;
            }
            return f3;
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            int n = sc.nextInt();
            System.out.println(fib(n));
        }
    }
}*/
